package com.sales.controller;


import com.github.pagehelper.PageInfo;
import com.sales.service.SalesSlipDetService;
import org.comple.erp.pojo.sales.SalesSlipDet;
import org.comple.erp.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Component
@RestController
public class SalesSlipDetController {
    @Autowired
    private SalesSlipDetService salesSlipDetServiceImpl;

    @RequestMapping("/salesSlipDetList")
    public AjaxResult salesSlipDetList(@RequestParam Map<String, Object> params){
        PageInfo<SalesSlipDet> salesSlipDetList = salesSlipDetServiceImpl.selectSlipDetList(params);
        return AjaxResult.back("200", "查询成功").add("salesSlipDetList", salesSlipDetList);
    }
}
